LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := su
LOCAL_SRC_FILES := su.c utils.c daemon.c activity.c pts.c
# LOCAL_FORCE_STATIC_EXECUTABLE := true
# LOCAL_STATIC_LIBRARIES := libcutils libc
# LOCAL_LDLIBS += -ldl -llog -lc -lm
LOCAL_CFLAGS += -fPIE 		#这两句，在5.0以后必须加。不加会报错fPIE
LOCAL_LDFLAGS += -fPIE -pie	#对于直接使用...gcc,只加这一个就行

include $(BUILD_EXECUTABLE)